package com.ytjj.qmyx.admin.dao;

import com.ytjj.qmyx.admin.model.KnowledgeBaseEntity;
import com.ytjj.qmyx.admin.model.request.KnowledgeBaseRequest;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author jiawei
 * @date 2024年08月23日 13:57
 * @describe
 */
public interface KnowledgeBaseDao {

    /**
     * 插入数据
     */
    int insertEntity(KnowledgeBaseEntity entity);

    /**
     * 分页查询知识库
     */
    List<KnowledgeBaseEntity> searchKnowledgeBase(KnowledgeBaseRequest request);

    /**
     * 批量删除
     */
    int batchDelItem(@Param("list") List<Integer> list);

    /**
     * 修改
     */
    int updateEntity(KnowledgeBaseEntity entity);

    /**
     * 是否存在
     */
    Integer isExist(Integer supplyProductId, String question,String answer);


}
